package models.login
{
    
    
    public class QQjsScreen extends ListPanelScreen
    {
        public function QQjsScreen()
        {
            super();
            jsport.callFunc$func("setTimeout($func,1000,312,1)",function(){
                trace("a123",arguments);
            });
        }
        private var jsport:JSPort = new JSPort();
//        private var share:shareWeb = new shareWeb();
        override protected function get data():Array
        {
            return [
                {label:"Login",handle:function ():void{
                    jsport.evalJs('QC.Login({btnId:"qqLoginBtn"});');
                }},
                {label:"showPops",handle:function ():void{
                    jsport.evalJs('QC.Login.showPopup({appId:"101210160"})');
                }},
                {label:"setOpenId",handle:function ():void{
                    jsport.evalJs('QC.Login._onLoginBack("92136EE831D871D0ABFF6A6366BFC2F0","3F586F6B355BCD46DCAD181859EFB802",true)');
                }},				
                {label:"getMe",handle:function ():void{
//					jsport.evalJs("QC.Login.getMe(getMovie().directback)")
//                    success("getMe")
                    jsport.callFunc$func("QC.Login.getMe($func)",function (...args):void{success(args)});
                }},	
//                {label:"share",handle:function ():void{
//                    //					jsport.evalJs("QC.Login.getMe(getMovie().directback)")
//                    success("share")
////					jsport.callFunc$func("QC.Login.getMe($func)",function (...args):void{success(args)});
//                    share.shareQzone("www.pamakids.com")
//                }},	
                {label:"add_share",handle:function ():void{
                    var obj:Object = {
                            images:"http://y.photo.qq.com/img?s=OnbP8BwOF&l=y.jpg",
                            title:"#QQ互联JSSDK测试#我是标题啊标题",
                            url:"http://connect.qq.com/",
                            comment:"我是评论：转发原因",
                            summary:"我是摘要：内容说明"
                        };
                    jsport.callFunc$func('QC.api("add_share", '+JSON.stringify(obj)+').success($func).error($func).complete($func)',function (){trace("func1",arguments)},function (){trace("func2",arguments)},function (){trace("func3",arguments)})
                }}
                ]
        }
    }
}

